#include < stdio.h >
#include < string.h >
#define N 80 
int fun( char s[]) 
{  int i=0,count=0;
	while(s[i++]!=' '||s[i]!=0)
		if(s[i]==' '&&s[i-1]!=' ') count++;
	return count;
}
int main() 
{ 	char line[N]; int num=0; 
	printf("Enter a string :\n"); gets(line); 
	num=fun( line ); 
	printf("The number of word is : %d\n\n",num); 
	return 0;
}
